import select
import sys

def sleep_sec(seconds):
    """Sleep for specified seconds"""
    select.select((),(),(), seconds)

def dtest(component, msg):
    """Log to inform dtest of state changes"""
    if use_dtest:
        sys.stderr.write('!dtest:%s:%s\n' % (component, msg))

use_dtest = False
